package com.hsc.yalebao.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hsc.yalebao.model.IssueListBaseBean;
import java.util.ArrayList;

@SuppressLint({"NewApi"})
public class KaijiangListAdapter extends BaseAdapter
{
  private Context context;
  private LayoutInflater inflater;
  private ArrayList<IssueListBaseBean> issueListBaseBeanList;
  private String type = "home";

  public KaijiangListAdapter(Context paramContext, ArrayList<IssueListBaseBean> paramArrayList, String paramString)
  {
    this.context = paramContext;
    this.inflater = LayoutInflater.from(paramContext);
    this.issueListBaseBeanList = paramArrayList;
    this.type = paramString;
  }

  public int getCount()
  {
    if (this.issueListBaseBeanList == null)
      return 0;
    return this.issueListBaseBeanList.size();
  }

  public Object getItem(int paramInt)
  {
    return this.issueListBaseBeanList.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    ViewHolder localViewHolder;
    if (paramView == null)
    {
      localViewHolder = new ViewHolder();
      paramView = this.inflater.inflate(2130903153, null);
      localViewHolder.txt_issue = ((TextView)paramView.findViewById(2131100175));
      localViewHolder.txt_issue_no = ((TextView)paramView.findViewById(2131100176));
      paramView.setTag(localViewHolder);
    }
    IssueListBaseBean localIssueListBaseBean;
    while (true)
    {
      localIssueListBaseBean = (IssueListBaseBean)this.issueListBaseBeanList.get(paramInt);
      if (localIssueListBaseBean != null)
        break;
      return paramView;
      localViewHolder = (ViewHolder)paramView.getTag();
    }
    String str1 = localIssueListBaseBean.getIssue();
    String str2 = localIssueListBaseBean.getRealResult().replace(",", " + ");
    String str3 = localIssueListBaseBean.getSumValue();
    String str4 = localIssueListBaseBean.getRealWin();
    localViewHolder.txt_issue.setText(str1);
    localViewHolder.txt_issue_no.setText(str2 + " = " + str3 + " (" + str4 + ")");
    return paramView;
  }

  public void setData(ArrayList<IssueListBaseBean> paramArrayList)
  {
    this.issueListBaseBeanList = paramArrayList;
  }

  public class ViewHolder
  {
    public TextView txt_issue;
    public TextView txt_issue_no;

    public ViewHolder()
    {
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.KaijiangListAdapter
 * JD-Core Version:    0.6.2
 */